package com.xywl.escort.view.user.register;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.CaptchaBean;
import com.xywl.escort.bean.GetSmsCodeReq;
import com.xywl.escort.bean.RegisterReq;

public interface RegisterContract {

    interface Presenter extends BasePresenter {
        void takeView(RegisterContract.View view);

        void getCode(GetSmsCodeReq req);

        void register(RegisterReq req);

        void getCaptcha();
    }

    interface View extends BaseView<Presenter> {
        void startCountDown();

        void getCodeFailure(String msg);

        void registerSuccess(BaseResp resp);

        void registerFailure(String msg);

        void getCaptchaSuccess(CaptchaBean bean);

        void getCaptchaFailure();
    }
}